<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link href="./css/api.css" rel="stylesheet"/>
  <link href="./css/element.css" rel="stylesheet"/>
  <link href="./css/base.css" rel="stylesheet"/>
  <title>待评估</title>
</head>
<body>
  <div id="vm" v-cloak>
    <header class="x-header">
      <i class="el-icon-arrow-left x-closewin-icon" @click="closetoindex"></i>
      <div class="x-header-t">待评估</div>
    </header>
    <div class="x-interl-table">
      <el-table :data="tableData" style="" size="small">
        <el-table-column prop="username" label="姓名" width="60"></el-table-column>
        <el-table-column prop="date" label="投递时间" width="90"></el-table-column>
        <el-table-column prop="job" label="面试岗位" width="70"></el-table-column>
        <el-table-column prop="id" label="个人简历" width="55" style="text-align:center">
          <template slot-scope="scope">
            <span class="x-see-person" @click="openmanawin('seeassessment','seeassessment.html',scope.row.id)">查看</span>
          </template>
        </el-table-column>
        <el-table-column prop="" label="操作" width="70">
          <template slot-scope="scope">
            <div class="x-change-per" @click="openmanawin('assessment','assessment.html',scope.row.mid)">评估</div>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
  <script type="text/javascript" src="./script/vue.js"></script>
  <script type="text/javascript" src="./script/element.js"></script>
  <script type="text/javascript" src="./script/api.js"></script>
  <script type="text/javascript" src="./js/base.js"></script>
  <script>
  apiready = function () {
    api.addEventListener({
        name: 'assessmentok'
    }, function(ret, err) {
        vm.gettabledata()
    });
      //
    var vm = new Vue({
      el:'#vm',
      data(){
        return{
          tableData:[]
        }
      },
      created:function() {
        var that=this;

      },
      mounted:function(){
        var that=this;
        that.gettabledata()
      },
      methods: {
        gettabledata:function(){
          var that=this;
          api.ajax({
            url:manaurltwo+'list',
            methods:'get',
            data:{
              values:{
                sec:$api.getStorage('usertoken'),
                type:'3'
              }
            }
          },function(ret,err){
            if(ret){
              api.hideProgress();
              console.log(JSON.stringify(ret));
              if(ret.status == 1){
                that.tableData = ret.data.list;

              }else{
                api.toast({
                    msg: ret.msg,
                    duration: 3000,
                    location: 'bottom'
                });
              }
            }else{
              api.hideProgress();
              console.log(JSON.stringify(err));
              api.toast({
                  msg: err.msg,
                  duration: 3000,
                  location: 'bottom'
              });
            }
          })
        },
      }
    })
    }
  </script>
</body>
</html>
